Skip to content

[release-notes] ASP.NET Core in .NET 11 Preview 5#10422

Draft
danroth27 wants to merge 8 commits into
release-notes/11.0-preview5from
release-notes/11.0-preview5-aspnetcore
Draft

[release-notes] ASP.NET Core in .NET 11 Preview 5#10422
danroth27 wants to merge 8 commits into
release-notes/11.0-preview5from
release-notes/11.0-preview5-aspnetcore

Conversation

@danroth27
Copy link
Copy Markdown
Member

ASP.NET Core release notes for .NET 11 Preview 5.

This component PR targets the base milestone branch release-notes/11.0-preview5 (umbrella PR: #10421). Review and edit the markdown here in isolation — when this PR merges into the base branch, the changes roll up into the umbrella PR.

Draft generated with the release-notes skill in this repo. Verify feature selection, code samples, API names, and contributor attributions before marking ready for review.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@danroth27 danroth27 added area-release-notes automation Created by automated repository workflows/agents. labels May 28, 2026
@danroth27 danroth27 self-assigned this May 28, 2026
@danroth27 danroth27 added area-release-notes automation Created by automated repository workflows/agents. labels May 28, 2026
Copilot AI added 2 commits May 27, 2026 20:11
Hands-on testing with the samples app surfaced two Preview 5 ASP.NET Core features that weren't in the first draft: async form validation (dotnet/aspnetcore #66526) and resource-based validation localization (dotnet/aspnetcore #66646). Both ship together and are foundational for the SSR client validation section, so add dedicated sections covering the EditContext.AddValidationTask / IsValidationPending API and the AddValidationLocalization<T> wire-up.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Found via a milestone cross-check sweep against the draft: PR #65650 was
merged into main on 2026-05-14 with labels area-mvc,feature-openapi but no
11.0-preview5 milestone tag, which kept it off the editorial scoring pass's
radar even though it changes user-visible MVC + minimal API + OpenAPI
behavior. Adds a dedicated section under the OpenAPI cluster.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@danroth27
Copy link
Copy Markdown
Member Author

@davpetr FYI: Generated ASP.NET Core release notes for .NET 11 Preview 5.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds ASP.NET Core component release notes for .NET 11 Preview 5, fitting into the preview milestone documentation set that rolls up into the umbrella release-notes PR.

Changes:

  • Adds feature highlights for Blazor, QuickGrid, Kestrel, and OpenAPI updates.
  • Adds bug-fix summaries grouped by ASP.NET Core area.
  • Adds community contributor acknowledgements for the milestone.

Comment thread release-notes/11.0/preview/preview5/aspnetcore.md Outdated
Comment thread release-notes/11.0/preview/preview5/aspnetcore.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Daniel Roth <daroth@microsoft.com>
Comment thread release-notes/11.0/preview/preview5/aspnetcore.md Outdated
Copy link
Copy Markdown
Contributor

@mikekistler mikekistler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with my one suggested change. 👍

Comment thread release-notes/11.0/preview/preview5/aspnetcore.md Outdated
Copy link
Copy Markdown
Member

@oroztocil oroztocil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I posted the re-worked sections as regular comments to avoid problems with code blocks inside suggestion blocks.

Feel free to make the sections shorter if there is too much detail. However, the original texts were confusing and leaking implementation details.

Comment thread release-notes/11.0/preview/preview5/aspnetcore.md Outdated
Comment thread release-notes/11.0/preview/preview5/aspnetcore.md Outdated
Comment thread release-notes/11.0/preview/preview5/aspnetcore.md Outdated
Comment thread release-notes/11.0/preview/preview5/aspnetcore.md Outdated
- Rewrite Blazor validation sections (SSR client-side, async, localization) per @oroztocil's suggestions
- Update TOC entries to match new section titles
- Rewrite #65650 OpenAPI paragraph per @mikekistler's suggestion (and drop the leaked vscode-file URL)
- Remove @cincuranet from community contributors per @Youssef1313 (not a community contributor)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread release-notes/11.0/preview/preview5/aspnetcore.md
Comment thread release-notes/11.0/preview/preview5/aspnetcore.md Outdated
Copilot AI added 2 commits June 3, 2026 10:59
- SSR validation snippet: add @code block with SupplyParameterFromForm Model and HandleValidSubmit so the sample compiles (@ilonatommy)
- QuickGrid: document the EnableUrlBasedQuickGridNavigationAndSorting AppContext opt-out and the button-vs-anchor CSS implication (@dariatiurina)
- Add new section for RenderFragment serialization (#66754) covering ChildContent across @rendermode boundaries; remove from filtered list (@dariatiurina)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The previously-suggested 'Model { get; set; } = new()' initializer triggers
Blazor analyzer warning BL0008 ('property has [SupplyParameterFromForm] and a
property initializer; this can be overwritten with null during form posts').
Switch to the recommended nullable + OnInitialized ??= new() pattern that ships
in MS Learn's Blazor SSR form docs.

Verified end-to-end against 11.0.100-preview.5.26302.115:
  - Build is clean (no BL0008 / no CS8602)
  - Valid POST -> HandleValidSubmit runs, form data round-trips
  - Invalid POST -> server re-renders with validation errors (no NullRef)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@danroth27
Copy link
Copy Markdown
Member Author

Verified all three updates end-to-end against 11.0.100-preview.5.26302.115 with new demos in danroth27/AspNetCore11Samples@fc32624.

One finding from testing: the original Model { get; set; } = new() form of the snippet trips Blazor analyzer warning BL0008 ([SupplyParameterFromForm] property with an initializer can be overwritten with null during form posts). Switched the snippet (and demo) to the canonical nullable + OnInitialized() => Model ??= new() pattern in 347b00c to match the analyzer expectation and the convention used in MS Learn's Blazor SSR form docs. End-to-end behavior verified: valid POST runs HandleValidSubmit, invalid POST re-renders with validation errors, no NRE.

QuickGrid opt-out switch name confirmed against the shipping DLL: Microsoft.AspNetCore.Components.QuickGrid.EnableUrlBasedQuickGridNavigationAndSorting. RenderFragment-across-render-mode-boundaries also works: SSR parent successfully projects ChildContent into an @rendermode="InteractiveServer" child without the pre-Preview-5 InvalidOperationException.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-release-notes automation Created by automated repository workflows/agents.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants